package dxn.nl.file.biz.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import dxn.nl.file.client.model.enums.ExportFileTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper=false)
@TableName("app_mode_org_bind")
public class AppModeOrgBindPo {
    private Long id;

    @Schema(title = "appId")
    private String appId;

    @Schema(title = "模块编号")
    private String modeCode;

    @TableField(exist = false)
    @Schema(title = "模块名称")
    private String modeName;

    @Schema(title = "导出类型 10 导出 20 上传")
    private Integer exportTypeCode;
    @Schema(title = "导出类型")
    public String getExportTypeName()
    {
        return ExportFileTypeEnum.getName(exportTypeCode);
    }

    @Schema(title = "编号")
    private String code;

    @Schema(title = "名称")
    private String name;

    @Schema(title = "创建时间")
    private LocalDateTime createTime;

    @Schema(title = "创建用户")
    private String createUserCode;

    @Schema(title = "创建用户名称")
    private String createUserName;
}
